<?php
    require('./Utils.php');

    $sql = "SELECT id,type, image FROM pet_type";

    $conn = getConnection();
    
    $data = query_list($conn, $sql);

    getJson(200, '获取成功', $data);
?>